<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
    />
    <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
    <title><%= webpackConfig.name %></title>
    <style id="antiClickjack">
      body {
        display: none !important;
      }
    </style>
  </head>
  <body>
    <noscript>
      <strong
        >We're sorry but <%= webpackConfig.name %> doesn't work properly without
        JavaScript enabled. Please enable it to continue.</strong
      >
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script src="<%= BASE_URL %>web3.min.js" type="text/javascript"></script>
  <script>
    if (self == top) {
      var antiClickjack = document.getElementById("antiClickjack");
      antiClickjack.parentNode.removeChild(antiClickjack);
    } else {
      top.location = self.location;
    }
    var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
    var jsSrc = (navigator.language || navigator.browserLanguage).toLowerCase();
    console.log(userAgent, jsSrc);
    //判断是否IE浏览器
    if (
      (!!window.ActiveXObject || "ActiveXObject" in window) &&
      jsSrc == "zh-cn"
    ) {
      alert(
        "本系统不支持IE浏览器，请选择Chrome、Safari、火狐或者QQ浏览器、搜狗浏览器的非兼容版"
      );
    }
    if (
      (!!window.ActiveXObject || "ActiveXObject" in window) &&
      jsSrc != "zh-cn"
    ) {
      alert(
        "This system does not support IE browser, please use Chrome, Firefox, Safari or Opera."
      );
    }
  </script>
</html>
